package cn.itsource.pethome.org.query;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 查询条件基础封装
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class BaseQuery {
   //当前页
   private Integer currentPage=1;
   //每页条数
   private Integer pageSize=10;
    //开始页码
    public Integer getBegin() {
        return (currentPage-1)*pageSize;
    }
}
